package com.leiduoduo.oms.dao;

import com.leiduoduo.oms.pojo.Dish;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface DishDao {
    boolean addDish(Dish dish);
    boolean delDish(Dish dish);
    boolean upDish(Dish dish);
    Dish getDishById(int id);
    List<Dish> getDishList();
    List<Dish> getDishListByRestId(int restaurant_id);
    Double getMoneyByDish(@Param("dishIds") List<Integer> dishIds);
}
